/*
* pps_bom
*/
package com.pitop.project.api;

import com.pitop.project.entity.ProjectLog;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 项目变更日志 api请求熔断器
 *
 * @author berton
 */
@FeignClient(value = "pps-cloud-provider", fallback = ProjectLogFeignApiImpl.class)
public interface ProjectLogFeignApi {
    /**
     * 查询ProjectLog一个详情信息
     *
     * @param id
     * @return ProjectLog
     */
    @GetMapping(value = "/projectLog/load")
    ProjectLog load(@RequestParam("id") Long id);


    /**
     * 根据条件id查询ProjectLog一个详情信息
     *
     * @param id
     * @return ProjectLog
     */
    @GetMapping(value = "/projectLog/load/id/{id}")
    ProjectLog loadById(@RequestParam("id") Long id);

    /**
     * 删除ProjectLog
     */
    @DeleteMapping("/projectLog/delete")
    void delete(@RequestParam("id") Long id);


    /**
     * 查询ProjectLog信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/projectLog/list")
    List<ProjectLog> list(@RequestBody ProjectLog projectLog, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 查询ProjectLog信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/projectLog/list/by")
    List<ProjectLog> listByPk(@RequestParam("id") Long id, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 统计ProjectLog信息数量根据主键
     *
     * @return 总条数
     */
    @GetMapping(value = "/projectLog/count/by")
    Integer count(@RequestParam("id") Long id);

    /**
     * 统计ProjectLog信息数量
     *
     * @return 总条数
     */
    @PostMapping(value = "/projectLog/count")
    Integer count(@RequestBody ProjectLog projectLog);


    /**
     * 创建ProjectLog
     *
     * @return ProjectLog
     */
    @PostMapping("/projectLog/build")
    ProjectLog build(@RequestBody ProjectLog projectLog);


    /**
     * 修改ProjectLog
     *
     * @return ProjectLog
     */
    @PutMapping("/projectLog/modify")
    ProjectLog modify(@RequestBody ProjectLog projectLog);


}
